<template>
  <div class="home-preferential">
    <!-- 特惠模块 -->
    <div class="preferential-item1">
      <div class="item1-text">
        <p>门票特买</p>
        <p>天天好假1折拼起</p>
      </div>
      <div class="item1-img">
        <img src="http://s.qunarzz.com/homenode/images/touchheader/piao.png" />
      </div>
    </div>
    <div class="preferential-item1">
      <div class="item1-text">
        <p>暑期大促</p>
        <p>领劵立减15元</p>
      </div>
      <div class="item1-img">
        <img src="http://s.qunarzz.com/homenode/images/touchheader/package.png" />
      </div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="scss" scoped>
.home-preferential {
  margin: 0.2rem 0;
  width: 100%;
  height: 1.2rem;
  display: flex;
  border-top: 0.02rem solid #eee;
  border-bottom: 0.02rem solid #eee;
  background: #fff;
}
.home-preferential .preferential-item1 {
  flex: 1;
  display: flex;
}
.home-preferential .preferential-item1 .item1-text {
  flex: 7;
  text-align: center;
  margin: 0 0.1rem;
  line-height: 0.6rem;
}
.home-preferential .preferential-item1 p:nth-of-type(1) {
  color: red;
  font-size: 0.3rem;
}
.home-preferential .preferential-item1 p:nth-of-type(2) {
  color: #333;
  font-size: 0.22rem;
  margin: 0.1rem 0;
}

.home-preferential .preferential-item1 .item1-img {
  flex: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-preferential .preferential-item1 .item1-img img {
  width: 0.5rem;
  height: 0.5rem;
}

.home-preferential > div:nth-last-child(1) {
  flex: 1;
  box-sizing: border-box;
  border-left: 0.02rem solid #eee;
}
</style>
